package com.wyzz.hr.util.tags;

import com.opensymphony.xwork2.util.ValueStack;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.struts2.components.Component;
import org.apache.struts2.views.jsp.ui.AbstractUITag;

public class OrgselectorTag extends AbstractUITag {

	public OrgselectorTag() {
	}

	public Component getBean(ValueStack arg0, HttpServletRequest arg1,
			HttpServletResponse arg2) {
		return new OrgselectorComp(arg0, arg1, arg2);
	}

	protected void populateParams() {
		super.populateParams();
		OrgselectorComp selector = (OrgselectorComp) component;
		selector.setId(id);
		selector.setName(name);
		selector.setHiddenFieldName(hiddenFieldName);
		selector.setIsShowDisable(isShowDisable);
		selector.setIsShowPb(isShowPb);
		selector.setIsShowCheckBox(isShowCheckBox);
	}

	public String getIsShowDisable() {
		return isShowDisable;
	}

	public void setIsShowDisable(String isShowDisable) {
		this.isShowDisable = isShowDisable;
	}

	public String getIsShowPb() {
		return isShowPb;
	}

	public void setIsShowPb(String isShowPb) {
		this.isShowPb = isShowPb;
	}

	public String getHiddenFieldName() {
		return hiddenFieldName;
	}

	public void setHiddenFieldName(String hiddenFieldName) {
		this.hiddenFieldName = hiddenFieldName;
	}

	public String getIsShowCheckBox() {
		return isShowCheckBox;
	}

	public void setIsShowCheckBox(String isShowCheckBox) {
		this.isShowCheckBox = isShowCheckBox;
	}

	private static final long serialVersionUID = 1L;
	private String hiddenFieldName;
	private String isShowDisable;
	private String isShowPb;
	private String isShowCheckBox;
}
